﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL;
using UM_SERVER.Command;
using UM_SERVER.Net;
using UM_SERVER.Packet;
using UM_SERVER.Session;
using UMFramework.Network;
using NetMeeting_Server.Config;
using UserManager=UM_SERVER.User.UserManager;
using UM_SERVER.Triggers;
using UM_SERVER.Timer;

namespace UM_SERVER
{
    class Globle
    {
        /// <summary>
        ///     网络信息池
        /// </summary>
        public static Network_MessagePool NetworkMessagePool = new Network_MessagePool();
        /// <summary>
        ///     网络信息池响应事件
        /// </summary>
        public static NetworkMessagePoolEvent MesagePoolEvent = new NetworkMessagePoolEvent();
        /// <summary>
        ///     包帮助类
        /// </summary>
        public static PackageHelper packageHelper;
        /// <summary>
        ///     命令帮助类
        /// </summary>
        public static CommandHelper commandHelper;
        /// <summary>
        ///     命令处理类
        /// </summary>
        public static CommandProcessRouter commandProcessRouter = new CommandProcessRouter();
        /// <summary>
        ///     配置文件读取类
        /// </summary>
        public static ConfigInfo CI = new ConfigInfo();
        /// <summary>
        ///     TCP端口管理器
        /// </summary>
        public static TcpPortListenManager tcpPortListenerManager = new TcpPortListenManager();      
        /// <summary>
        ///     UDP端口管理器
        /// </summary>
        public static UdpPortListenManager udpPortListenerManager = new UdpPortListenManager();
        /// <summary>
        ///     包处理器类
        /// </summary>
        public static ProcessorRouter processorRouter = new ProcessorRouter();
        /// <summary>
        ///     上线用户管理类
        /// </summary>
        public static UserManager userManager = new UserManager();
        /// <summary>
        ///     数据库用户表管理层
        /// </summary>
        public static BLL.UserManager BLL_userManager = new BLL.UserManager();
        /// <summary>
        ///     数据库分组表管理层
        /// </summary>
        public static BLL.ItemManager BLL_itemManager = new ItemManager();
        /// <summary>
        ///     数据库好友表管理层
        /// </summary>
        public static BLL.FriendManager BLL_friendManager = new FriendManager();
        /// <summary>
        ///     会话管理器
        /// </summary>
        public static SessionManager sessionManager;
        /// <summary>
        ///     触发器管理器
        /// </summary>
        public static TriggerManager triggerManager;
        /// <summary>
        ///     超时器管理器
        /// </summary>
        public static TimeoutTimerManager timeoutTimerManager;
    }
}
